com.supermap.mapping
Class LayerGridAggregation
- java.lang.Object
-
- com.supermap.mapping.Layer
-
- com.supermap.mapping.LayerGridAggregation
-
public class LayerGridAggregation extends Layer
Grid map's layers
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AggregationFunctionTypegetAggregationFun()Gets the aggregation function applied to the aggregation fields of a grid map.ColorsgetColorset()Gets the color collectionColorTypegetGradientColorType()Gets a color gradient in a grid mapLayerGridAggregationTypegetGridAggregationType()Gets the grid types of a grid aggregation map.intgetGridHeight()Gets the height of each border of a rectangle gridTextStylegetGridLabelStyle()Gets the style of statistical values within gridsGeoStylegetGridLineStyle()Gets the style of grid lineintgetGridwidth()Gets the length of each border of a hexagonal grid or the width of each border of a rectangle grid.booleangetIsShowGridLabel()Returns whether to display grid labelsColorgetMaxColor()The color of highly dense pointsColorgetMinColor()The color of low dense pointsjava.lang.StringgetWeightField()Returns the weighted fieldvoidsetAggregationFun(AggregationFunctionType type)Sets the aggregation function applied to the aggregation fields of a grid map.voidsetColorset(Colors colors)Sets the color collectionvoidsetGradientColorType(ColorType type)Sets a color gradient in a grid mapvoidsetGridAggregationType(LayerGridAggregationType type)Sets the grid types of a grid aggregation map.voidsetGridHeight(int height)Sets the height of each border of a rectangle gridvoidsetGridLabelStyle(TextStyle style)Sets the style of statistical values within gridsvoidsetGridLineStyle(GeoStyle style)Sets the style of grid linevoidsetGridWidth(int width)Sets the length of each border of a hexagonal grid or the width of each border of a rectangle gridvoidsetIsShowGridLabel(boolean isShow)Sets whether to display grid labelsvoidsetMaxColor(Color color)Sets the color of highly dense pointsvoidsetMinColor(Color color)Sets the color of low dense pointsvoidsetWeightField(java.lang.String field)Sets the weighted field-
Methods inherited from class com.supermap.mapping.Layer
getAdditionalSetting, getByCaption, getCaption, getDataset, getDeduplicateThreshold, getDeduplicateTolerance, getDescription, getDisplayFilter, getIsSwipe, getLayerSettingVectorCache, getMaxVisibleScale, getMinVisibleGeometrySize, getMinVisibleScale, getName, getParentGroup, getSelection, getSymbolScale, getTheme, GetTheme, getTimeEndField, getTimeFilterEnding, getTimeFilterStarting, getTimeStartField, getTimeStepInterval, hitTest, hitTestEx, isDeduplicateEnabled, isDisposed, isEditable, isFastDrawEnabled, isSelectable, isSnapable, isSymbolScalable, IsTimeFilterEnable, isVisible, isVisibleScale, removeCache, setAdditionalSetting, setCaption, setDataset, setDeduplicateEnabled, setDeduplicateThreshold, setDeduplicateTolerance, setDescription, setDisplayFilter, setEditable, setFastDrawDataModefied, setFastDrawEnabled, setIsSwipe, setMaxVisibleScale, setMinVisibleGeometrySize, setMinVisibleScale, setOpaqueRate, setSelectable, setSnapable, setSymbolScalable, setSymbolScale, setTimeEndField, setTimeFilterEnable, setTimeFilterEnding, setTimeFilterStarting, setTimeStartField, setTimeStepInterval, setVisible, toXML
-
-
-
-
Method Detail
-
getMaxColor
public Color getMaxColor()
The color of highly dense points- Returns:
- Return the color of highly dense points
-
setMaxColor
public void setMaxColor(Color color)
Sets the color of highly dense points- Parameters:
color- The color value.
-
getMinColor
public Color getMinColor()
The color of low dense points- Returns:
- Return the color of low dense points
-
setMinColor
public void setMinColor(Color color)
Sets the color of low dense points- Parameters:
color- The color value.
-
setWeightField
public void setWeightField(java.lang.String field)
Sets the weighted field- Parameters:
field- the weighted field
-
getWeightField
public java.lang.String getWeightField()
Returns the weighted field- Returns:
- Returns the weighted field
-
setGridLineStyle
public void setGridLineStyle(GeoStyle style)
Sets the style of grid line- Parameters:
style- the style of grid line
-
getGridLineStyle
public GeoStyle getGridLineStyle()
Gets the style of grid line- Returns:
- the style of grid line
-
setGridLabelStyle
public void setGridLabelStyle(TextStyle style)
Sets the style of statistical values within grids- Parameters:
style- the style of statistical values within grids
-
getGridLabelStyle
public TextStyle getGridLabelStyle()
Gets the style of statistical values within grids- Returns:
- the style of statistical values within grids
-
setIsShowGridLabel
public void setIsShowGridLabel(boolean isShow)
Sets whether to display grid labels- Parameters:
isShow- whether to display grid labels
-
getIsShowGridLabel
public boolean getIsShowGridLabel()
Returns whether to display grid labels- Returns:
- whether to display grid labels
-
setGridAggregationType
public void setGridAggregationType(LayerGridAggregationType type)
Sets the grid types of a grid aggregation map.- Parameters:
type- Grid type
-
getGridAggregationType
public LayerGridAggregationType getGridAggregationType()
Gets the grid types of a grid aggregation map.- Returns:
- Grid types
-
setGridWidth
public void setGridWidth(int width)
Sets the length of each border of a hexagonal grid or the width of each border of a rectangle grid- Parameters:
width- width.
-
getGridwidth
public int getGridwidth()
Gets the length of each border of a hexagonal grid or the width of each border of a rectangle grid. Values range from 5 to 100.- Returns:
- The width
-
setGridHeight
public void setGridHeight(int height)
Sets the height of each border of a rectangle grid- Parameters:
height- height.
-
getGridHeight
public int getGridHeight()
Gets the height of each border of a rectangle grid- Returns:
- The height
-
getAggregationFun
public AggregationFunctionType getAggregationFun()
Gets the aggregation function applied to the aggregation fields of a grid map.- Returns:
- Gets the aggregation function applied to the aggregation fields of a grid map.
-
setAggregationFun
public void setAggregationFun(AggregationFunctionType type)
Sets the aggregation function applied to the aggregation fields of a grid map.- Parameters:
type- Sets the aggregation function applied to the aggregation fields of a grid map.
-
setColorset
public void setColorset(Colors colors)
Sets the color collection- Parameters:
colors- color collection.
-
getColorset
public Colors getColorset()
Gets the color collection- Returns:
- the color collection
-
setGradientColorType
public void setGradientColorType(ColorType type)
Sets a color gradient in a grid map- Parameters:
type- the color gradient mode
-
getGradientColorType
public ColorType getGradientColorType()
Gets a color gradient in a grid map- Returns:
- Gets the color gradient mode in a heat map including: HSB and RGB
-
-